//
//  HallNumTableViewCell.m
//  Fangmm
//
//  Created by ChaoZhou on 16/3/14.
//  Copyright © 2016年 com.fangmm. All rights reserved.
//

#import "HallNumTableViewCell.h"

@implementation HallNumTableViewCell

- (void)rectHallNumButtonView
{
    switch (self.selectIndex)
    {
        case 0:
        {
            [self.hallNumButtonView0 setTitleColor:[UIColor colorWithRed:255.0/255 green:118.0/255 blue:108.0/255 alpha:1] forState:UIControlStateNormal];
            [self.hallNumButtonView1 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
            [self.hallNumButtonView2 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
            self.selectedImage0.hidden = NO;
            self.selectedImage1.hidden = YES;
            self.selectedImage2.hidden = YES;
        }
            break;
        case 1:
        {
            [self.hallNumButtonView0 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
            [self.hallNumButtonView1 setTitleColor:[UIColor colorWithRed:255.0/255 green:118.0/255 blue:108.0/255 alpha:1] forState:UIControlStateNormal];
            [self.hallNumButtonView2 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
            self.selectedImage0.hidden = YES;
            self.selectedImage1.hidden = NO;
            self.selectedImage2.hidden = YES;
        }
            break;
        default:
        {
            [self.hallNumButtonView0 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
            [self.hallNumButtonView1 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
            [self.hallNumButtonView2 setTitleColor:[UIColor colorWithRed:255.0/255 green:118.0/255 blue:108.0/255 alpha:1] forState:UIControlStateNormal];
            self.selectedImage0.hidden = YES;
            self.selectedImage1.hidden = YES;
            self.selectedImage2.hidden = NO;
        }
            break;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)hallNumButton:(id)sender
{
    [self.delegate whenClickHallNumButton:sender];
}
@end
